<template>
  <div class="meetingDetail wboxnoborder" id="meetingDetail">
            <el-table :data="personlist" highlight-current-row style="width: calc(100% - 40px);margin:15px" border>
              <el-table-column prop="realName" label="姓名" width="120">
              </el-table-column>
              <el-table-column label="动议岗位">
                <el-table-column prop="unitName" label="单位" show-overflow-tooltip></el-table-column>
                <el-table-column prop="jobName" label="职务" width="200" show-overflow-tooltip></el-table-column>
                <el-table-column prop="jobLevel" label="职级" width="120" show-overflow-tooltip></el-table-column>
              </el-table-column>
              <el-table-column label="目前信息">
                <el-table-column prop="candidateUnit" label="目前单位" show-overflow-tooltip></el-table-column>
                <el-table-column prop="currentJob" label="目前职务" width="200" show-overflow-tooltip></el-table-column>
                <el-table-column prop="currentLevel" label="目前职级" width="120" show-overflow-tooltip></el-table-column>
              </el-table-column>
              <el-table-column label="动议结果" width="100">
                <template slot-scope="scope">
                  <span v-show="scope.row.stateChangeResult===2">通过</span>
                  <span v-show="scope.row.stateChangeResult===1">未通过</span>
                </template>
              </el-table-column>
            </el-table>
            <el-form ref="dongyishowForm" :model="dongyishowForm" label-width="150px">
              <el-form-item label="党组会动议情况：" style="float:left">
                <span class="selectioncontent">
                  {{dateFtt("yyyy年MM月dd日",dongyishowForm.meetdate)}}
                  第
                  {{dongyishowForm.meetnum}}
                  次党组会审议
                </span>
              </el-form-item>
              <el-form-item label="部领导批示："  style="clear:both">
                <leaderOpinion :recordId="changeId" recordTable="bus_change_proposal" :leaderType="1" :canEdit="false"></leaderOpinion>
              </el-form-item>
              <el-form-item label="司领导批示：">
                <leaderOpinion :recordId="changeId" recordTable="bus_change_proposal" :leaderType="2" :canEdit="false"></leaderOpinion>
              </el-form-item>
              <el-form-item label="附件：" prop="file">
                <div  v-for="(item, index) of downloadfiles" :key="index"><a :href="$http.defaults.baseURL+$http.defaults.selectionAPI+'api/gen/file/download?id='+item.id">{{item.fileName}}.{{item.fileType}}</a></div>
              </el-form-item>
            </el-form>
  </div>
</template>

<script>
import leaderOpinion from './leaderOpinion'
export default {
  components: {
    leaderOpinion
  },
  name: 'meetingDetail',
  props: ['dongyishowForm', 'downloadfiles', 'personlist', 'changeId'],
  watch: {
    changeId (val, oldVal) {
      console.log('changeId has changed', val)
    },
    dongyishowForm (val, oldVal) {
      console.log('dongyishowForm has changed', val)
    },
    downloadfiles (val, oldVal) {
      console.log('downloadfiles has changed', val)
    },
    personlist (val, oldVal) {
      console.log('personlist has changed', val)
    }
  }
}
</script>
